<?php
include('class.db.php');
include('class.log.php');

$db = new db();
$database = "vdab";
$sql = "select * from users";

$result = $db->query($database, $sql);

$row = mysql_fetch_row($result);
$s = "select username from users where id = '$row[0]'";
$tus = $db->query($database, $s);
$row2 = mysql_fetch_row($tus);

$row[0] = $row2[0];

echo $row[0] . "<br />";
echo $row[1] . "<br />";

$log = new log();

$quer = "all";
$val = "1";
$ale = $log->get_log($quer, $val);
$db->tblPrint($ale);
?>